package com.zmn.oms.persistence.interfaces.serviceitem;

import com.zmn.oms.model.entity.serviceitem.OrderServiceItemCell;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderServiceItemCellDao {

	int insertAll(@Param("serviceItemDetailList") List<OrderServiceItemCell> serviceItemDetailList);

	List<OrderServiceItemCell> listByOrderIdList(@Param("orderIdList") List<Long> orderIdList);

	List<OrderServiceItemCell> listByOrderId(Long orderId);

	List<OrderServiceItemCell> listByOrderIdAndServItemId(@Param("orderId") Long orderId, @Param("workId") Long workId, @Param("servItemId") Integer servItemId);

	List<OrderServiceItemCell> findByOrderIdAndServItemId(@Param("orderId") Long orderId, @Param("servItemId") Integer servItemId);

	int deleteByOrderId(Long orderId);

	int deleteByProExtId(Long proExtId);

	Integer deleteByOrderIdAndServiceItemId(@Param("orderId") Long orderId, @Param("servItemId") Integer servItemId);
}